gtkwindow: Use shadow border when calculating resize areas positions
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 9 Dec 2017 16:33:44 +0000 (17:33 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 9 Dec 2017 16:33:44 +0000 (17:33 +0100)
This way resize areas are correctly positioned right outside the visible
window edge on all sides.

gtk/gtkwindow.c

index aba18df0121330d41f574e68d7a31a40d4f4bf2a..260e61bffb5d1ab4ba0e7a7076a55f6b1ba6163b 100644 (file)
@@ -1732,7 +1732,7 @@ edge_under_coordinates (GtkWindow     *window,
     {
       handle_h = MIN (RESIZE_HANDLE_SIZE, allocation.width / 2);
       handle_v = MIN (RESIZE_HANDLE_SIZE, allocation.height / 2);
-      gtk_style_context_get_margin (context, &border);
+      get_shadow_width (window, &border);
     }
   else
     {